/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package commonUtils;

import java.sql.Types;
import org.hibernate.Hibernate;
import org.hibernate.dialect.MySQL5Dialect;

/**
 *
 * @author wesleycl
 */
public class MyMySQLDialect extends MySQL5Dialect{

    public MyMySQLDialect(){
          super();
          registerHibernateType(Types.DECIMAL, Hibernate.BIG_DECIMAL.getName());
          registerHibernateType(-1, Hibernate.STRING.getName());
          registerHibernateType(Types.LONGVARCHAR, Hibernate.TEXT.getName());
    }

}
